﻿<%@ Page Language="C#" MasterPageFile="~/MainMaster.Master" AutoEventWireup="true" CodeBehind="BankAdd.aspx.cs" Inherits="Mang24k99.Web.OrgList.BankAdd" Title="新增银行机构" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server" >
    <script type="text/javascript">
          //过滤空格
          function verify(obj)
          {
              if(obj.keyCode==32 )
              {
                  obj.returnValue = false;
              } 
          }
    </script>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" height="34" align="center" background="../Images/bg1.jpg">
      <tr>
        <td align="right"><a href="GoldCorpAdd.aspx" class="col">金商</a></td>
        <td align="right"><a href="BankAdd.aspx" class="col_on">银行</a></td>
        <td align="right"><a href="DeptAdd.aspx" class="col">科视</a></td>
        <td>&nbsp; &nbsp; &nbsp; &nbsp; </td>
      </tr>
    </table>

    <table border="0" cellpadding="0" cellspacing="0" width="100%" height="34" align="center" style="height" background="../Images/bg1.jpg">
      <tr>
        <td  align="right">&nbsp;</td>
        <td align="right"><a class="col_on" href="BankAdd.aspx">新增银行机构</a></td>
        <td align="right">&nbsp;</td>
        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
        <td><a class="col" href="BankSort.aspx">银行机构排序</a></td>
      </tr>
    </table>
    
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#BED6A6">
  <tr>
    <td valign="top"><table width="334" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#BED6A6"
        style="border-collapse: collapse">
      <tr>
        <td width="103" class="tb_title1"> 银行机构名称</td>
        <td width="225" class="tb_txt1">
            <asp:TextBox ID="txtBankName" runat="server" MaxLength="20"></asp:TextBox>
        </td>
        
        <td>
            <asp:TextBox ID="txtOrgNO" runat="server" Style="display: none"></asp:TextBox>
        </td>
      </tr>
      <tr>
        <td width="103" class="tb_title1"> 是否授权机构</td>
        <td width="225" class="tb_txt1">
            <asp:RadioButtonList ID="rbtnListGrant" runat="server" TextAlign="Right" 
				RepeatDirection="Horizontal" >
				<asp:ListItem Text="授权机构" Value="1" Selected="True"></asp:ListItem>
				<asp:ListItem Text="非授权机构" Value="0"></asp:ListItem>
			</asp:RadioButtonList>
        </td>        
        <td>
        </td>
      </tr>
      <caption>
      <div align="left"><span class="nav">新增银行机构</span> </div>
        </caption>
      
    </table>    </td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="50%" align="center" >
  <tr>
    <td align="center">
        <asp:Button ID="btnSave" CssClass="form_btn" runat="server" Text="新增" 
            onclick="btnSave_Click" /></td>
    <td align="center">&nbsp;</td>
    <td align="center">
        <asp:Button ID="btnCancel"  CssClass="form_btn" runat="server" Text="取消" 
            onclick="btnCancel_Click" /></td>
  </tr>
</table>  

  <div>
        <asp:GridView ID="grdList" runat="server" Width="100%" OnSelectedIndexChanged="grdList_SelectedIndexChanged"
            OnRowDeleting="grdList_RowDeleting" AutoGenerateColumns="False" 
            onrowcommand="grdList_RowCommand">
            <HeaderStyle CssClass="tb_title2" />
            <RowStyle CssClass="tb_txt2" />
            <Columns>
                <asp:TemplateField HeaderText="序号">
                    <ItemTemplate>
                        <%#Container.DataItemIndex+1%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="OrgnizeNO" HeaderText="机构编号" />
                <asp:BoundField DataField="OrgnizeName" HeaderText="机构名称" />
                <asp:TemplateField HeaderText="状态">
                    <ItemTemplate>
                    <asp:Label ID="lab" runat="server" Text='<%#GetStatus((int)Eval("IsColumn"))%>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="InputTime" HeaderText="创建日期" />
                <asp:ButtonField ButtonType="link" CommandName="Select" HeaderText="编辑" ShowHeader="True"
                    Text="编辑" />
                <asp:TemplateField HeaderText="修改状态">
                    <ItemTemplate>
                            <asp:LinkButton ID="lkbtnHidden" runat="server" CommandName="hidden"  OnClientClick="return confirm('确定要修改该机构状态吗？')"
                                CommandArgument='<%# Eval("OrgnizeNO")%>'>修改状态</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>  
                <asp:CommandField DeleteText="&lt;div id=&quot;de&quot; onclick=&quot;JavaScript:return confirm('确定删除吗？')&quot;&gt;删除&lt;/div&gt; "  HeaderText="删除"
                    ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
